#include "includes.h"
#include "bsp/bsp.h"
#include "bsp/bsp_led.h"
#include "bsp/bsp_delay.h"
#include "bsp/bsp_debug.h"


int main() {
  bsp_init();
  bsp_debug_init();
  debug_init(bsp_debug_stream,DEBUG_ALL);
  bsp_led_init();
  debug_info("\r\n");
  debug_info("System startup");
  // while
  while (1) {
    debug_info("LED blink");
    bsp_led_on(0);
    bsp_delay_ms(500);
    bsp_led_off(0);
    bsp_delay_ms(500);
    bsp_led_toggle(0);
    bsp_delay_ms(500);
    bsp_led_toggle(0);
    bsp_delay_ms(500);
  } 
}